package HOT100;


import java.util.*;

/**
 * @author 是阿秋啊
 * @date 2022/10/27 18:54
 **/
public class Test extends A{
    static {
        System.out.println("Tstastic");
    }
    {
        System.out.println("子类普通");
    }
    public Test(){
        System.out.println("Test");
    }

    public static void main(String[] args) {
        A a1 = new Test();
        System.out.println(a1.fun(2));
    }
}

class A{
    static {
        System.out.println("Astastic");
    }
    {
        System.out.println("父类普通");
    }
    public A(){
        System.out.println("A");
    }
    public int fun(int a){
        return a;
    }
}